import 'package:mvvm_plus/mvvm_plus.dart';

// Created by 王亮 on 2025/2/10.
class HomePageViewModel extends ViewModel {
  int _selectedIndex = 0;

  get selectedIndex => _selectedIndex;

  void onItemTapped(int index) {
    if (index == _selectedIndex) {
      return;
    }
    _selectedIndex = index;
    buildView();
  }
}
